ns16550: limit mapped MMIO size
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Nov 2015 12:23:11 +0000 (13:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Nov 2015 12:23:11 +0000 (13:23 +0100)
commitb9730aaae72b813f0e01124e79ccc3b25509f3d3
tree97871a253d893d6a2ad51850bf2f819d4f20904c
parent7efcc5844437837c9fe26ab4935dd8f034b230a4
ns16550: limit mapped MMIO size

There's no point in mapping more than the memory we actually may need
to touch, and in fact the too large region could actually extend into
another device's one (which currently is benign on x86 since only a
single page gets mapped anyway, but which is a latent bug on ARM
whenever PCI support gets enabled there).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/char/ns16550.c